﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Media.Media3D;

namespace Wpf3dCollaborative
{
    /// <summary>
    /// Logique d'interaction pour Menu3d.xaml
    /// </summary>
    public partial class MenuKinect : Grid
    {

        private Boolean isMinimised = false;// Indique si le menu est replié
        public MenuKinect()
        {
            InitializeComponent();
            Replier();
        }


        private void button2_Click_1(object sender, RoutedEventArgs e)
        {
            Replier();


        }

        public void Replier()
        {
            if (!isMinimised)
            {
                isMinimised = true;
                Menu.Visibility = Visibility.Hidden;

                this.Width = 30;
                btnReplier.Content = ">";
            }
            else
            {
                isMinimised = false;
                Menu.Visibility = Visibility.Visible;
                this.Width = 710;
                btnReplier.Content = "<";
            }
        }

  

    }
}
